home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / sprite.X11R3 / hdr / bw1var.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-03  |  1.3 KB  |  52 lines

  1. /*    @(#)bw1var.h 1.1 86/07/07 SMI    */
  2.  
  3. /*
  4.  * Copyright (c) 1983 by Sun Microsystems, Inc.
  5.  */
  6.  
  7. #define    bw1_fbfrompr(pr) (((struct bw1pr *)(pr)->pr_data)->bwpr_va)
  8. /*
  9.  * Information pertaining to the Sun-1 frame buffer but not to pixrects in
  10.  * general is stored in the struct pointed to by the pr_data attribute of the
  11.  * pixrect.
  12.  */
  13. struct    bw1pr {
  14.     struct    bw1fb *bwpr_va;
  15.     int    bwpr_fd;
  16.     int    bwpr_flags;
  17.     int    bwpr_mask;        /* unused bit plane mask reg */
  18.     struct    pr_pos bwpr_offset;
  19. };
  20.  
  21. #define bw1_d(pr) ((struct bw1pr *)(pr)->pr_data)
  22.  
  23. /*
  24.  * One property of the frame buffer not shared with all pixrects is that
  25.  * it may be operated in either "normal" video (black background) or reverse
  26.  * video (white background).  "Normal" is with respect to the frame buffer
  27.  * hardware, to which a 1 means white.  Most applications will use reverse
  28.  * video.  Reverse video is indicated by setting the BW_REVERSEVIDEO flag
  29.  * in bwpr_flags.
  30.  */
  31. #define    BW_REVERSEVIDEO    1        /* MUST BE CONSTANT 1; see getput */
  32.  
  33. extern    struct pixrectops bw1_ops;
  34.  
  35. int    bw1_rop();
  36. #ifndef KERNEL
  37. int    bw1_stencil();
  38. int    bw1_batchrop();
  39. struct    pixrect *bw1_make();
  40. int    bw1_destroy();
  41. int    bw1_get();
  42. int    bw1_put();
  43. int    bw1_vector();
  44. struct    pixrect *bw1_region();
  45. #endif
  46. int    bw1_putcolormap();
  47. int    bw1_putattributes();
  48. #ifndef KERNEL
  49. int    bw1_getcolormap();
  50. int    bw1_getattributes();
  51. #endif
  52.